package com.google.code.jerseyclients.model;

/*
 * Olivier Lamy
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

import java.io.Serializable;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * @author <a href="mailto:olamy@apache.org">Olivier Lamy</a>
 * @version $Id: ProxyInformation.java 12 2010-11-12 21:58:07Z oliver.lamy $
 */
@SuppressWarnings( "serial" )
@XmlRootElement(name = "proxyInformation")
public class ProxyInformation
    implements Serializable
{

    private String proxyHost;

    private int proxyPort;

    private String proxyUser;

    private String proxyPassword;

    public ProxyInformation()
    {
        // no op
    }

    public ProxyInformation( String proxyHost, int proxyPort, String proxyUser, String proxyPassword )
    {
        this.proxyHost = proxyHost;
        this.proxyPort = proxyPort;
        this.proxyUser = proxyUser;
        this.proxyPassword = proxyPassword;
    }

    @XmlAttribute(name = "proxyHost")
    public String getProxyHost()
    {
        return proxyHost;
    }

    public void setProxyHost( String proxyHost )
    {
        this.proxyHost = proxyHost;
    }

    @XmlAttribute(name = "proxyPort")
    public int getProxyPort()
    {
        return proxyPort;
    }

    public void setProxyPort( int proxyPort )
    {
        this.proxyPort = proxyPort;
    }

    @XmlAttribute(name = "proxyUser")
    public String getProxyUser()
    {
        return proxyUser;
    }

    public void setProxyUser( String proxyUser )
    {
        this.proxyUser = proxyUser;
    }

    @XmlAttribute(name = "proxyUser")
    public String getProxyPassword()
    {
        return proxyPassword;
    }

    public void setProxyPassword( String proxyPassword )
    {
        this.proxyPassword = proxyPassword;
    }

}
